<p>As you’ve seen, the <code>break</code> keyword exits a loop. But if you just want to skip the current item and continue on to the next one, you should use <code>continue</code> instead.</p>
<p>To try this out, we can write a loop from 1 through 10, then use Swift’s remainder operator to skip any numbers that are odd:</p>
<pre class="code">
<p></p>
<p><span class="keyword">for</span> i <span class="keyword">in</span> <span class="number">1</span><span class="punctuation">.</span><span class="punctuation">.</span><span class="punctuation">.</span><span class="number">10</span> <span class="punctuation">{</span></p>
<p>  <span class="keyword">if</span> i <span class="operator">%</span> <span class="number">2</span> <span class="operator">==</span> <span class="number">1</span> <span class="punctuation">{</span></p>
<p>    <span class="keyword">continue</span></p>
<p>  <span class="punctuation">}</span></p>
<p>  <span class="function">print</span><span class="punctuation">(</span>i<span class="punctuation">)</span></p>
<p><span class="punctuation">}</span></p>
<p></p>
</pre>

<p style="height: 0px; margin-bottom: 0px;"></p>
<p>Remember, the remainder operator figures out how many times 2 fits into each number in our loop, then returns whatever is left over. So, if 1 is left over, it means the number is odd, so we can use <code>continue</code> to skip it.</p>